package com.jieshuibao.model.domain;

import java.util.Date;


public class Article {
    private String uuid;

    private String allowComment;

    private String content;

    private String title;

    private String link;

    private String image;

    private Date createDate;

    private String keywords;

    private String description;

    private Integer hits;

    private String remarks;

    private String delFlag;

    private ArticleCategory category;
    
    private UserLevel userLevel;
    
    private Integer approveNum;

    private Integer opposeNum;
    
    private String coverImage;
    
    private Integer discussNum;
    
    private Integer top;
    
    private String creatBy;
    
    private long time;
    
    private int isAttention;
    
    private int ifCollection;
    
    private String descriptionText;
    
	public long getTime() {
		
		Date date2 = getCreateDate();
		
		if (date2==null) {
			return time;
		}else {
			return date2.getTime();
		}
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getCreatBy() {
		return creatBy;
	}

	public void setCreatBy(String creatBy) {
		this.creatBy = creatBy;
	}

	public Integer getTop() {
		return top;
	}

	public void setTop(Integer top) {
		this.top = top;
	}

	public Integer getDiscussNum() {
		return discussNum;
	}

	public void setDiscussNum(Integer discussNum) {
		this.discussNum = discussNum;
	}

	public Integer getApproveNum() {
		return approveNum;
	}

	public void setApproveNum(Integer approveNum) {
		this.approveNum = approveNum;
	}

	public Integer getOpposeNum() {
		return opposeNum;
	}

	public void setOpposeNum(Integer opposeNum) {
		this.opposeNum = opposeNum;
	}

	public String getCoverImage() {
		return coverImage;
	}

	public void setCoverImage(String coverImage) {
		this.coverImage = coverImage;
	}

	public ArticleCategory getCategory() {
		return category;
	}

	public void setCategory(ArticleCategory category) {
		this.category = category;
	}

	public UserLevel getUserLevel() {
		return userLevel;
	}

	public void setUserLevel(UserLevel userLevel) {
		this.userLevel = userLevel;
	}

    public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getAllowComment() {
        return allowComment;
    }

    public void setAllowComment(String allowComment) {
        this.allowComment = allowComment;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
    //文章 详情

	public int getIsAttention() {
		return isAttention;
	}

	public void setIsAttention(int isAttention) {
		this.isAttention = isAttention;
	}

	public int getIfCollection() {
		return ifCollection;
	}

	public void setIfCollection(int ifCollection) {
		this.ifCollection = ifCollection;
	}

	public String getDescriptionText() {
		return descriptionText;
	}

	public void setDescriptionText(String descriptionText) {
		this.descriptionText = descriptionText;
	}
    
    
}